

<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="PackageTable">

    <div class="layui-card-body">

        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" placeholder="" required  value='{$vo.title|default=""}' class="layui-input">

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">缩略图</label>
            <div class="layui-input-block">
                <input name="thumb" value="{$vo.thumb|default=''}" type="hidden" >
                <script> $('[name=thumb]').uploadOneImage(); </script>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-col-xs5">
                <label class="layui-form-label">所需积分</label>
                <div class="layui-input-block">
                    <input type="number" name="price" placeholder=""   value='{$vo.price|default=""}' class="layui-input">

                </div>
            </div>
            <div class="layui-col-xs5">
                <label class="layui-form-label">库存</label>
                <div class="layui-input-block">
                    <input type="number" name="stock" placeholder=""   value='{$vo.stock|default=""}' class="layui-input">

                </div>
            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">商品简介</label>
            <div class="layui-input-block">
                <textarea placeholder="" class="layui-textarea"   name="describe">{$vo.describe|default=""}</textarea>
            </div>
        </div>
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">详细内容</label>-->
<!--            <div class="layui-input-block">-->
<!--                <textarea placeholder="" class="layui-textarea"   name="content">{$vo.content|default=""}</textarea>-->
<!--            </div>-->
<!--        </div>-->



    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消编辑吗？')}" data-close>{:lang('取消编辑')}</button>
    </div>
</form>
{block name='script'}
<script>
    require(['angular', 'ckeditor'], function () {

        let editor;
        editor = window.createEditor('[name="content"]');
    })
</script>
{/block}